package com.isoft.demo.controller;

import com.isoft.demo.common.ResponseData;
import com.isoft.demo.service.CheckService;
import com.isoft.demo.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin
public class CheckController {
    @Autowired
    private CheckService service;


    @GetMapping( "/integ")
    public ResponseData integra(){
        ResponseData rs = service.integ();
        return rs;
    }

    @GetMapping( "/c-all")
    public ResponseData checkAll(){
        ResponseData rs = service.checkAll();
        return rs;
    }
    @GetMapping("/searchProfit")
    public ResponseData searchProfit(){
        ResponseData rs = service.searchProfit();
        return rs;
    }

    @GetMapping("/searchProfitById")
    public ResponseData searchProfitById(int eid){
        ResponseData rs = service.searchProfitById(eid);
        return rs;
    }
}
